package com.study.springcloudconfigservice.config;

import java.io.IOException;
import java.util.Properties;

/**
 * @description:
 * @author: ljr
 * @time 2021/3/29 15:29
 */
public class PropertyConverXml {

    public static void main(String[] args) {
        Properties properties = new Properties();
        properties.setProperty("name", "ljr");
        properties.setProperty("age", "27");
        try {
            properties.storeToXML(System.out,"This is comment","UTF-8");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
